package ${package};

import com.ilxqx.framework.system.enumeration.EntityEnum;
import lombok.Getter;
import org.apache.commons.lang3.StringUtils;

/**
 * ${table.getComment()}${field.getComment()}枚举类
 * @author venus
 */
@Getter
public enum ${table.getCamelName()}${field.getCamelName()}Enum implements EntityEnum {

	<#list items as item>
    /**
	 * ${field.getComment()}${item.value}
	 */
	${item.key?upper_case}(<#list item.value?split("-") as val>"${val}"<#if val?has_next>, </#if></#list>)<#if item?has_next>,<#else>;</#if>

	</#list>
	/**
     * 枚举值
     */
	private final String value;

	/**
     * 值含义
     */
	private final String meaning;

	${table.getCamelName()}${field.getCamelName()}Enum(String value, String meaning) {
		this.value = value;
		this.meaning = meaning;
	}

}
